<?php
// +----------------------------------------------------------------------
// | Description: 1
// +----------------------------------------------------------------------
// | Author: orchief
// +----------------------------------------------------------------------
// | Date: 2018-01-24 15:37:11
// +----------------------------------------------------------------------

namespace app\client\validate;

use think\Validate;

/**
 *
 */
class ShopGoodsProducts extends Validate
{
    protected $rule = array(
        'MarketPrice' => 'require',
        'Unit' => 'require',
        'ProductName' => 'require|unique:shop_goods_products',
        'ProductCode' => 'require|unique:shop_goods_products',
        'ShortDescription' => 'require',
        'MobbileDescription' => 'require',
        'Title' => 'require',
    );
    protected $message = array(
        'MarketPrice.require' => '请输入市场价格',
        'Unit.require' => '请输入计量单位',
        'ProductName.require' => '请输入商品名称',
        'ProductCode.require' => '请输入商品货号',
        'ProductName.unique' => '商品名称重复',
        'ProductCode.unique' => '商品货号重复',
        'ShortDescription.require' => '请输入简短描述',
        'MobbileDescription.require' => '请输入移动端描述',
        'Title.require' => '请输入详情页标题',
    );
    protected $scene = [

    ];
}
